package io.jee.caisan.weixin.service;

import java.util.List;

import io.jee.alaska.util.Result;
import io.jee.caisan.weixin.vo.MpMenuVo;
import me.chanjar.weixin.common.bean.menu.WxMenuButton;

public interface MpMenuService {
	
	/**
	 * 查询菜单
	 * @return
	 */
	List<MpMenuVo> findBySource(String source);
	
	/**
	 * 同步菜单
	 * @return
	 */
	Result<?> asyncMenu();
	
	/**
	 * 保存菜单
	 * <p>保存之前会先删除数据库数据
	 * @return
	 */
	Result<?> saveMenu(List<WxMenuButton> buttons);
	
	/**
	 * 发布菜单
	 * @return
	 */
	Result<?> publishMenu();
	
	/**
	 * 删除菜单
	 * @return
	 */
	Result<?> deleteMenu();
	
}
